package cn.test.pojo.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
@ApiModel(description = "封装多内大盘数据的实体类")
public class InnerMarketDomain {

    @ApiModelProperty(value = "大盘编码", example = "SH000001")
    private String code;

    @ApiModelProperty(value = "大盘名称", example = "上证指数")
    private String name;

    @ApiModelProperty(value = "开盘点", example = "3500.25")
    private BigDecimal openPoint;

    @ApiModelProperty(value = "当前点", example = "3480.30")
    private BigDecimal curPoint;

    @ApiModelProperty(value = "前收盘点", example = "3490.10")
    private BigDecimal preClosePoint;

    @ApiModelProperty(value = "交易量", example = "1200000")
    private Long tradeAmt;

    @ApiModelProperty(value = "交易金额", example = "500000000")
    private Long tradeVol;

    @ApiModelProperty(value = "涨跌值", example = "-10.20")
    private BigDecimal upDown;

    @ApiModelProperty(value = "涨幅", example = "-0.29")
    private BigDecimal rose;

    @ApiModelProperty(value = "振幅", example = "1.20")
    private BigDecimal amplitude;

    @ApiModelProperty(value = "当前时间", example = "2024-10-21 12:49")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date curTime;
}